<style>
    .layui-iconpicker-body.layui-iconpicker-body-page .hide {
        display: none;
    }
</style>
<link rel="stylesheet" href="__STATIC__/plugs/lay-module/autocomplete/autocomplete.css?v={$version}" media="all">
<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form" autocomplete="off">
        <div class="layui-form-item">
            <label class="layui-form-label required">机器编号</label>
            <div class="layui-input-block">
                <input type="text" name="machine_id" class="layui-input" lay-verify="required" lay-reqtext="请输入标题名称" disabled placeholder="请输入标题名称" value="{$machine_id}">
                <tip>填写标题名称。</tip>
            </div>
        </div>
        <div class="layui-form-item  layui-row layui-col-xs12">
            <label class="layui-form-label required">上级菜单</label>
            <div class="layui-input-block">
                <select name="pid" lay-filter="pidSelect">
                    {foreach $pidMenuList as $vo}
                    <option value="{$vo.id}" {if $id==$vo.id}selected=""{/if}>{$vo.title|raw}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">标题</label>
            <div class="layui-input-block">
                <input type="text" name="title" class="layui-input" lay-verify="required" lay-reqtext="请输入标题名称" placeholder="请输入标题名称" value="">
                <tip>填写标题名称。</tip>
            </div>
        </div>
        <div class="layui-form-item" id="value" {if condition="$id != 0"}style="display: none"{/if}>
            <label class="layui-form-label required">变量名</label>
            <div class="layui-input-block">
                <input type="text" name="value" class="layui-input" lay-verify="" lay-reqtext="请输入变量名" placeholder="请输入变量名 如 ‘VM538’" value="">
                <tip>填写变量名。</tip>
            </div>
        </div>
        <div class="layui-form-item" id="data_value" {if condition="$id == 0"}style="display: none"{/if}>
            <label class="layui-form-label required">变量值</label>
            <div class="layui-input-block">
                <input type="number" name="data_value" class="layui-input" lay-verify="" lay-reqtext="请输入变量值" placeholder="请输入变量值 如 ‘80’" value="">
                <tip>填写变量值。</tip>
            </div>
        </div>


        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-block">
                <input type="number" name="sort" lay-reqtext="菜单排序不能为空" placeholder="请输入菜单排序" value="0" class="layui-input">
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>
